package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class MonthStatisticsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MonthStatisticsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStatisticsidIsNull() {
            addCriterion("statisticsId is null");
            return (Criteria) this;
        }

        public Criteria andStatisticsidIsNotNull() {
            addCriterion("statisticsId is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticsidEqualTo(Integer value) {
            addCriterion("statisticsId =", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidNotEqualTo(Integer value) {
            addCriterion("statisticsId <>", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidGreaterThan(Integer value) {
            addCriterion("statisticsId >", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("statisticsId >=", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidLessThan(Integer value) {
            addCriterion("statisticsId <", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidLessThanOrEqualTo(Integer value) {
            addCriterion("statisticsId <=", value, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidIn(List<Integer> values) {
            addCriterion("statisticsId in", values, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidNotIn(List<Integer> values) {
            addCriterion("statisticsId not in", values, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidBetween(Integer value1, Integer value2) {
            addCriterion("statisticsId between", value1, value2, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticsidNotBetween(Integer value1, Integer value2) {
            addCriterion("statisticsId not between", value1, value2, "statisticsid");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectIsNull() {
            addCriterion("statisticalObject is null");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectIsNotNull() {
            addCriterion("statisticalObject is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectEqualTo(String value) {
            addCriterion("statisticalObject =", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectNotEqualTo(String value) {
            addCriterion("statisticalObject <>", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectGreaterThan(String value) {
            addCriterion("statisticalObject >", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectGreaterThanOrEqualTo(String value) {
            addCriterion("statisticalObject >=", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectLessThan(String value) {
            addCriterion("statisticalObject <", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectLessThanOrEqualTo(String value) {
            addCriterion("statisticalObject <=", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectLike(String value) {
            addCriterion("statisticalObject like", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectNotLike(String value) {
            addCriterion("statisticalObject not like", value, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectIn(List<String> values) {
            addCriterion("statisticalObject in", values, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectNotIn(List<String> values) {
            addCriterion("statisticalObject not in", values, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectBetween(String value1, String value2) {
            addCriterion("statisticalObject between", value1, value2, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticalobjectNotBetween(String value1, String value2) {
            addCriterion("statisticalObject not between", value1, value2, "statisticalobject");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeIsNull() {
            addCriterion("statisticalTime is null");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeIsNotNull() {
            addCriterion("statisticalTime is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeEqualTo(String value) {
            addCriterion("statisticalTime =", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotEqualTo(String value) {
            addCriterion("statisticalTime <>", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeGreaterThan(String value) {
            addCriterion("statisticalTime >", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeGreaterThanOrEqualTo(String value) {
            addCriterion("statisticalTime >=", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeLessThan(String value) {
            addCriterion("statisticalTime <", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeLessThanOrEqualTo(String value) {
            addCriterion("statisticalTime <=", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeLike(String value) {
            addCriterion("statisticalTime like", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotLike(String value) {
            addCriterion("statisticalTime not like", value, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeIn(List<String> values) {
            addCriterion("statisticalTime in", values, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotIn(List<String> values) {
            addCriterion("statisticalTime not in", values, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeBetween(String value1, String value2) {
            addCriterion("statisticalTime between", value1, value2, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticaltimeNotBetween(String value1, String value2) {
            addCriterion("statisticalTime not between", value1, value2, "statisticaltime");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthIsNull() {
            addCriterion("statisticsTheMonth is null");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthIsNotNull() {
            addCriterion("statisticsTheMonth is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthEqualTo(String value) {
            addCriterion("statisticsTheMonth =", value, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthNotEqualTo(String value) {
            addCriterion("statisticsTheMonth <>", value, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthGreaterThan(String value) {
            addCriterion("statisticsTheMonth >", value, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthGreaterThanOrEqualTo(String value) {
            addCriterion("statisticsTheMonth >=", value, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthLessThan(String value) {
            addCriterion("statisticsTheMonth <", value, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthLessThanOrEqualTo(String value) {
            addCriterion("statisticsTheMonth <=", value, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthLike(String value) {
            addCriterion("statisticsTheMonth like", value, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthNotLike(String value) {
            addCriterion("statisticsTheMonth not like", value, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthIn(List<String> values) {
            addCriterion("statisticsTheMonth in", values, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthNotIn(List<String> values) {
            addCriterion("statisticsTheMonth not in", values, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthBetween(String value1, String value2) {
            addCriterion("statisticsTheMonth between", value1, value2, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsthemonthNotBetween(String value1, String value2) {
            addCriterion("statisticsTheMonth not between", value1, value2, "statisticsthemonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultIsNull() {
            addCriterion("statisticsResult is null");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultIsNotNull() {
            addCriterion("statisticsResult is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultEqualTo(String value) {
            addCriterion("statisticsResult =", value, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultNotEqualTo(String value) {
            addCriterion("statisticsResult <>", value, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultGreaterThan(String value) {
            addCriterion("statisticsResult >", value, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultGreaterThanOrEqualTo(String value) {
            addCriterion("statisticsResult >=", value, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultLessThan(String value) {
            addCriterion("statisticsResult <", value, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultLessThanOrEqualTo(String value) {
            addCriterion("statisticsResult <=", value, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultLike(String value) {
            addCriterion("statisticsResult like", value, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultNotLike(String value) {
            addCriterion("statisticsResult not like", value, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultIn(List<String> values) {
            addCriterion("statisticsResult in", values, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultNotIn(List<String> values) {
            addCriterion("statisticsResult not in", values, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultBetween(String value1, String value2) {
            addCriterion("statisticsResult between", value1, value2, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultNotBetween(String value1, String value2) {
            addCriterion("statisticsResult not between", value1, value2, "statisticsresult");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthIsNull() {
            addCriterion("statisticsResultMonth is null");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthIsNotNull() {
            addCriterion("statisticsResultMonth is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthEqualTo(String value) {
            addCriterion("statisticsResultMonth =", value, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthNotEqualTo(String value) {
            addCriterion("statisticsResultMonth <>", value, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthGreaterThan(String value) {
            addCriterion("statisticsResultMonth >", value, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthGreaterThanOrEqualTo(String value) {
            addCriterion("statisticsResultMonth >=", value, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthLessThan(String value) {
            addCriterion("statisticsResultMonth <", value, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthLessThanOrEqualTo(String value) {
            addCriterion("statisticsResultMonth <=", value, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthLike(String value) {
            addCriterion("statisticsResultMonth like", value, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthNotLike(String value) {
            addCriterion("statisticsResultMonth not like", value, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthIn(List<String> values) {
            addCriterion("statisticsResultMonth in", values, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthNotIn(List<String> values) {
            addCriterion("statisticsResultMonth not in", values, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthBetween(String value1, String value2) {
            addCriterion("statisticsResultMonth between", value1, value2, "statisticsresultmonth");
            return (Criteria) this;
        }

        public Criteria andStatisticsresultmonthNotBetween(String value1, String value2) {
            addCriterion("statisticsResultMonth not between", value1, value2, "statisticsresultmonth");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}